package com.itheima.dao;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    public List<User> findAll();

    public User findById(int id);

    public User login(@Param("username") String username, @Param("password") String password);

    public List<User> findByIds(List<Integer> ids);

    public void save(User user);

    public void delete(int id);

    public List<User> findByName(String username);

    public void save1(User user);

    public int findCount();

    public void update(User user);

    public void save2(User user);

    public List<User> dt(User user);
    public List<User> page();
    public List<User> findByIds2(Integer[] arr);
}
